package com.csaba.util.encryption;

public class EncryptedStoreEvent
{
	public final static int STORE_INITIALIZED = 1;
	public final static int STORE_OPEN = 2;
	public final static int STORE_PASSWORD_CHANGED = 3;
	public final static int STORE_SERIALIZED = 4;
	public final static int STORE_DESERIALIZED = 5;
	public final static int STORE_UPDATED = 6;

	private final int eventType;
	private final EncryptedStore source;

	EncryptedStoreEvent( final EncryptedStore source, final int eventType )
	{
		this.eventType = eventType;
		this.source = source;
	}

	public int getEventType()
	{
		return eventType;
	}

	public EncryptedStore getSource()
	{
		return source;
	}
}
